<?php
// application/helpers/path_helper.php
if (!function_exists('image_url'))
{   
    function image_url()
    {
        // the helper function doesn't have access to $this, so we need to get a reference to the 
        // CodeIgniter instance.  We'll store that reference as $CI and use it instead of $this
        $CI =& get_instance();
        
        // return the image_url
        return $CI->config->item('images');
    }
}

if (!function_exists('css_url'))
{   
    function css_url()
    {
        // the helper function doesn't have access to $this, so we need to get a reference to the 
        // CodeIgniter instance.  We'll store that reference as $CI and use it instead of $this
        $CI =& get_instance();
        
        // return the css_url
        return $CI->config->item('css');
    }
}

if (!function_exists('js_url'))
{   
    function js_url()
    {
        // the helper function doesn't have access to $this, so we need to get a reference to the 
        // CodeIgniter instance.  We'll store that reference as $CI and use it instead of $this
        $CI =& get_instance();
        
        // return the js_url
        return $CI->config->item('js');
    }
}